package com.tx.blog.inter.controller;

import com.tx.blog.user.service.IUserService;
import com.tx.blog.user.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ：tx
 * @description：接口类
 * @date ：Created in 2019/5/16 14:23
 * @modified By：
 * @version: 1.0
 */
@RestController
@RequestMapping("/inter")
public class InterfaceController {

    @Autowired
    IUserService userService;

    @RequestMapping("/getUsers")
    public List<UserVo> findUsers(){
        return userService.findUsers();
    }
}
